package cn.edu.sjtu.se.peakfactory.service.interfaces;

import java.util.List;

import cn.edu.sjtu.se.peakfactory.service.bean.CouponVB;
import cn.edu.sjtu.se.peakfactory.service.bean.UserCouponVB;

public interface CouponService {
	public List<CouponVB> searchCouponByName(String couponName);
	
	public List<CouponVB> getAllCoupons();
	
	public List<UserCouponVB> getUserCoupons(Long userId);
	
	public UserCouponVB getUserCouponsById(Long userId, Long couponId);
	
	public void gainUserCoupon(Long userId, Long couponId);
	
	public void useUserCoupon(Long userId, Long couponId);
}
